import request from '../../utils/request'
export interface User{
    Age:number;
    Datetime: string;
    Email: string;
    ID: number;
    NickName: string;
    PassWord: string;
    Phone: string;
    Remake: string;
    Roleid: number;
    Sex: number;
    UserName:string;
}

export const GetUserInfo=(id:string)=>{
    return request({
        url: '/user/GetUserInfo?id='+id,
        method: 'post'
    });
}
export const List = (query:{}) => {
    return request({
        url: '/user/List',
        method: 'post',
        data:query
    });
};  
export const Update = (data:User) => {
    return request({
        url: '/user/Update',
        method: 'post',
        data:data
    });
};
export const Add = (data:User) => {
    return request({
        url: '/user/Add',
        method: 'post',
        data:data
    });
};

export const Deleteuser = (id:number) => {
    return request({
        url: '/user/Del?id='+id,
        method: 'post'
    });
};
